const columns: TableColumnList = [
  {
    type: "selection",
    align: "left",
    reserveSelection: true
  }, // 启用多选
  {
    label: "性别",
    prop: "sex",
    cellRenderer: ({ row }) => (
      <el-switch
        v-model={row.sex}
        inline-prompt
        active-value={0}
        inactive-value={1}
        active-text="男"
        inactive-text="女"
      />
    ) // 使用动态组件渲染
  },
  {
    label: "日期",
    prop: "date"
  }, // 普通表项
  {
    label: "姓名",
    prop: "name"
  },
  {
    label: "地址",
    prop: "address"
  },
  {
    label: "操作",
    fixed: "right", // 位置，只有left、right
    slot: "operation" // 插槽名
  } // 使用插槽
];
export { columns };
